<?php 

$pvar = 100;

$process = new swoole_process(function(swoole_process $p){
	var_dump($p);

	var_dump($pvar);
	echo "child pid=>".$p->pid;
});

echo "parents pid=>";
var_dump($process);

$process->start();